import React from 'react'
import './css/cover.less';
import {BasePic} from '../../utils/basic'
// adminMain下的模态框

class Cover extends React.Component {
    state={
        hrefText:''
    }
    getHref(){
            this.props.hrefInfo();
        // this.props.history.push(`/levelTest/${kidsid}`)
    }
    componentDidMount(){
    }
    render () {
        return (
                this.props.text.isShow?(<div className="cover"> 
                <div className="cover-center">
                    {
                        this.props.text.num === 1?<img alt='' src={BasePic+'kid1.png'}/>:''
                    }{
                        this.props.text.num === 2?<img alt='' src={BasePic+'kid2.png'}/>:''
                    }{
                        this.props.text.num === 3?<img alt='' src={BasePic+'kid3.png'}/>:''
                    }{
                        this.props.text.btn?<a className='cover-btn' onClick={()=>{this.getHref()}} style={{cursor:"pointer"}}>开始</a>:''
                    }
                </div>
            </div>):''
    )
  }
}
export default Cover;